package cn.hm.mapper;

import cn.hm.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    @Select("select * from user")
    List<User> selectAll();

    User login(@Param("username")String username, @Param("password")String password);

    Integer save(User user);

    User selectById(@Param("uid") String uid);

    Integer update(User user);

    int delete(@Param("ids") Integer ...ids);
}
